Skip to content

Conversation

@imurchie
Copy link
Collaborator

Since npm added deduplication of modules, if this package and the enclosing package have the same mocha version it will only exist in the outer node_modules, and so this module will not find it.

Rather than get the local mocha bin from this package's node_modules/.bin folder, find the npm bin folder in play, and get mocha from it.

To make sure there is a mocha there, add a peer dependency for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants